package com.automannn.atm_back.modules.codeGenerator.entity;

import com.automannn.atm_back.modules.codeGenerator.core.pojo.Template;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * @author chenkh
 * @time 2020/7/10 9:09
 */
@Data
@TableName("generator_template")
public class TemplateEntity implements Serializable {
    private static final long serialVersionUID = 1L;
    /**
     * id
     */
    private String id;

    /**
     * 模板域id
     */
    private String templateGroupId;

    /**
     * 模板名称
     */
    private String name;
    /**
     * 模板代码
     */
    private String code;
    /**
     * 模板注释
     */
    private String note;

    private String createUser;
    private Date createTime;
    private String updateUser;
    private String updateTime;
    private String effective;

    public Template toTemplate(){
        Template template = new Template();
        template.setName(name);
        template.setCode(code);
        return template;
    }
}
